package com.tangzx.builder.decoder;

import java.io.FileInputStream;

import com.tangzx.builder.SwfMovie;
import com.tangzx.builder.context.ExcludeLibContext;
import flash.swf.TagDecoder;

public class ExcludeLib extends MovieABCDecoder {
	private FileInputStream swfFileStream;
	public ExcludeLib(FileInputStream swf) {
		super(new SwfMovie(), new ExcludeLibContext());
		swfFileStream = swf;
	}
	
	public void parse() throws Exception {
		TagDecoder decoder = new TagDecoder(swfFileStream);
		decoder.parse(this);
	}
	
	@Override
	public IABCDecoder getABCDecoder() {
		return new LibAbcDecoder();
	}
}


class LibAbcDecoder extends AbcDecoder
{
	@Override
	public void startParse() {
		scanCpool(buf);
	}
}